﻿using System;
using System.Collections.Generic;
using System.Text;

namespace gChartSharp
{
    public class DataScaleParam : ParamBase<DataScale>, IRenderable
    {
        public override string Name { get { return "chds"; } }
    }


    public class DataScale : IRenderable
    {
        /// <summary>
        /// The lower limit of data values to dsplay
        /// </summary>
        public float Minimum { get; set; }


        /// <summary>
        /// The upper limit of data values to display
        /// </summary>
        public float Maximum { get; set; }


        /// <summary>
        /// Constructor to initialize all properties
        /// </summary>
        /// <param name="minimum"></param>
        /// <param name="maximum"></param>
        public DataScale(float minimum, float maximum)
        {
            Minimum = minimum;
            Maximum = maximum;
        }


        public string Render()
        {
            return String.Format("{0},{1}", Minimum, Maximum);
        }
    }
}
